<template>
  <el-select v-model="value" clearable placeholder="全部状态" style="width: 230px;" @change="onChange" @clear="clearList">
    <el-option
      v-for="item in optionStatus"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select>
</template>

<script>
export default {
  props: {
    optionStatus: {
      type: Array,
      default: null
    }
  },
  data(){
    return {
      value: ''
    }
  },
  methods: {
    onChange(val){
      this.$emit('onChangeVal', val);
    },
    clearList() {
      this.$emit('clearList');
    }
  }
}
</script>

<style scoped>

</style>
